Optimal. Leaf size=35 \[ \frac {(c+d x) \sec ^2(a+b x)}{2 b}-\frac {d \tan (a+b x)}{2 b^2} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.03, antiderivative size = 35, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.150, Rules used = {4409, 3767, 8} \[ \frac {(c+d x) \sec ^2(a+b x)}{2 b}-\frac {d \tan (a+b x)}{2 b^2} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 8
Rule 3767
Rule 4409
Rubi steps
\begin {align*} \int (c+d x) \sec ^2(a+b x) \tan (a+b x) \, dx &=\frac {(c+d x) \sec ^2(a+b x)}{2 b}-\frac {d \int \sec ^2(a+b x) \, dx}{2 b}\\ &=\frac {(c+d x) \sec ^2(a+b x)}{2 b}+\frac {d \operatorname {Subst}(\int 1 \, dx,x,-\tan (a+b x))}{2 b^2}\\ &=\frac {(c+d x) \sec ^2(a+b x)}{2 b}-\frac {d \tan (a+b x)}{2 b^2}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.06, size = 48, normalized size = 1.37 \[ -\frac {d \tan (a+b x)}{2 b^2}+\frac {c \sec ^2(a+b x)}{2 b}+\frac {d x \sec ^2(a+b x)}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.41, size = 36, normalized size = 1.03 \[ \frac {b d x - d \cos \left (b x + a\right ) \sin \left (b x + a\right ) + b c}{2 \, b^{2} \cos \left (b x + a\right )^{2}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [B] time = 1.84, size = 571, normalized size = 16.31 \[ \frac {b d x \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{4} + b c \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{4} + 2 \, b d x \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, b d x \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{4} + 2 \, b c \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, d \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{3} + 2 \, b c \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{4} + 2 \, d \tan \left (\frac {1}{2} \, b x\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{4} + b d x \tan \left (\frac {1}{2} \, b x\right )^{4} + 4 \, b d x \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} + b d x \tan \left (\frac {1}{2} \, a\right )^{4} + b c \tan \left (\frac {1}{2} \, b x\right )^{4} - 2 \, d \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right ) + 4 \, b c \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} - 12 \, d \tan \left (\frac {1}{2} \, b x\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{2} - 12 \, d \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{3} + b c \tan \left (\frac {1}{2} \, a\right )^{4} - 2 \, d \tan \left (\frac {1}{2} \, b x\right ) \tan \left (\frac {1}{2} \, a\right )^{4} + 2 \, b d x \tan \left (\frac {1}{2} \, b x\right )^{2} + 2 \, b d x \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, b c \tan \left (\frac {1}{2} \, b x\right )^{2} + 2 \, d \tan \left (\frac {1}{2} \, b x\right )^{3} + 12 \, d \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right ) + 2 \, b c \tan \left (\frac {1}{2} \, a\right )^{2} + 12 \, d \tan \left (\frac {1}{2} \, b x\right ) \tan \left (\frac {1}{2} \, a\right )^{2} + 2 \, d \tan \left (\frac {1}{2} \, a\right )^{3} + b d x + b c - 2 \, d \tan \left (\frac {1}{2} \, b x\right ) - 2 \, d \tan \left (\frac {1}{2} \, a\right )}{2 \, {\left (b^{2} \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{4} - 2 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{4} \tan \left (\frac {1}{2} \, a\right )^{2} - 8 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{3} \tan \left (\frac {1}{2} \, a\right )^{3} - 2 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{4} + b^{2} \tan \left (\frac {1}{2} \, b x\right )^{4} + 8 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{3} \tan \left (\frac {1}{2} \, a\right ) + 20 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{2} \tan \left (\frac {1}{2} \, a\right )^{2} + 8 \, b^{2} \tan \left (\frac {1}{2} \, b x\right ) \tan \left (\frac {1}{2} \, a\right )^{3} + b^{2} \tan \left (\frac {1}{2} \, a\right )^{4} - 2 \, b^{2} \tan \left (\frac {1}{2} \, b x\right )^{2} - 8 \, b^{2} \tan \left (\frac {1}{2} \, b x\right ) \tan \left (\frac {1}{2} \, a\right ) - 2 \, b^{2} \tan \left (\frac {1}{2} \, a\right )^{2} + b^{2}\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.03, size = 61, normalized size = 1.74 \[ \frac {\frac {d \left (\frac {b x +a}{2 \cos \left (b x +a \right )^{2}}-\frac {\tan \left (b x +a \right )}{2}\right )}{b}-\frac {d a}{2 b \cos \left (b x +a \right )^{2}}+\frac {c}{2 \cos \left (b x +a \right )^{2}}}{b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [B] time = 0.35, size = 283, normalized size = 8.09 \[ \frac {c \tan \left (b x + a\right )^{2} - \frac {a d \tan \left (b x + a\right )^{2}}{b} + \frac {2 \, {\left (4 \, {\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right )^{2} + 4 \, {\left (b x + a\right )} \sin \left (2 \, b x + 2 \, a\right )^{2} + {\left (2 \, {\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) + \sin \left (2 \, b x + 2 \, a\right )\right )} \cos \left (4 \, b x + 4 \, a\right ) + 2 \, {\left (b x + a\right )} \cos \left (2 \, b x + 2 \, a\right ) + {\left (2 \, {\left (b x + a\right )} \sin \left (2 \, b x + 2 \, a\right ) - \cos \left (2 \, b x + 2 \, a\right ) - 1\right )} \sin \left (4 \, b x + 4 \, a\right ) - \sin \left (2 \, b x + 2 \, a\right )\right )} d}{{\left (2 \, {\left (2 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} \cos \left (4 \, b x + 4 \, a\right ) + \cos \left (4 \, b x + 4 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right )^{2} + \sin \left (4 \, b x + 4 \, a\right )^{2} + 4 \, \sin \left (4 \, b x + 4 \, a\right ) \sin \left (2 \, b x + 2 \, a\right ) + 4 \, \sin \left (2 \, b x + 2 \, a\right )^{2} + 4 \, \cos \left (2 \, b x + 2 \, a\right ) + 1\right )} b}}{2 \, b} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.19, size = 53, normalized size = 1.51 \[ -\frac {d\,1{}\mathrm {i}+{\mathrm {e}}^{a\,2{}\mathrm {i}+b\,x\,2{}\mathrm {i}}\,\left (-b\,\left (2\,c+2\,d\,x\right )+d\,1{}\mathrm {i}\right )}{b^2\,{\left ({\mathrm {e}}^{a\,2{}\mathrm {i}+b\,x\,2{}\mathrm {i}}+1\right )}^2} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \left (c + d x\right ) \tan {\left (a + b x \right )} \sec ^{2}{\left (a + b x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________